package com.code.family.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.code.family.entity.pojo.OperationLogs;
import com.code.family.service.OperationLogsService;
import com.code.family.mapper.OperationLogsMapper;
import org.springframework.stereotype.Service;

/**
* @author SkyPower
* @description 针对表【operation_logs(操作日志表)】的数据库操作Service实现
* @createDate 2024-12-10 20:11:41
*/
@Service
public class OperationLogsServiceImpl extends ServiceImpl<OperationLogsMapper, OperationLogs>
    implements OperationLogsService{

    private final OperationLogsMapper operationLogsMapper;

    public OperationLogsServiceImpl(OperationLogsMapper operationLogsMapper) {
        this.operationLogsMapper = operationLogsMapper;
    }

    @Override
    public void addLog(OperationLogs operationLogs) {
        operationLogsMapper.save(operationLogs);
    }
}




